package com.hsd.whb.service;

import com.hsd.whb.entity.Participants;
import com.wangjiacai.hqlQuery.service.BaseService;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ParticipantsService extends BaseService {

    List<Participants> findParticipateList(Pageable pageable, Integer managerId, Participants participants);

    long findParticipateListTotalPages(Integer managerId, Participants participants);

    Participants findParticipantsById(Integer id);

    Participants findParticipantsByUsername(String username);

    List<Participants> findParticipantsByIdInList(List<Integer> list);

    Participants save(Participants participants);

    Participants update(Participants participants);

    List<Participants> getParticipateListByName(String username, String existName);
}
